# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer:
pkgname=fswebcam
pkgver=20200725
pkgrel=0
pkgdesc="A neat and simple webcam app "
url="https://www.sanslogic.co.uk/fswebcam/"
arch="all"
license="GPL-2.0-only"
makedepends="
	gd-dev
	linux-headers
	"
source="https://github.com/fsphil/fswebcam/archive/$pkgver/fswebcam-$pkgver.tar.gz"
subpackages="$pkgname-doc"
options="!check" # No tests

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="f5cf6929221d516dfd6da3635a4f41dbc070ba6b641e61827255a92436f7b899e2af6415ce6d3ae58cc989e5c7cdce5619108fdeefe693c6b4d01d26ad689c73  fswebcam-20200725.tar.gz"
